package com.h2n.framework.dto;

import java.util.Map;
import java.util.HashMap;

/**
 * Created by IntelliJ IDEA.
 * User: NhatNV
 * Date: Sep 23, 2009
 * Time: 11:04:34 PM
 * To change this template use File | Settings | File Templates.
 */
public class GroupDTO {

  private int id;
  public void setId(int _id){
    this.id = _id;
  }
  public int getId(){
    return this.id;
  }

  private String group_Name;
  public void setGroup_Name(String _groupName){
    this.group_Name = _groupName;
  }
  public String getGroup_Name(){
    return this.group_Name;
  }

  private String description;
  public void setDescription(String _description){
    this.description = _description;
  }
  public String getDescription(){
    return this.description;
  }

  public enum Parameters{
    p_id,
    p_group_name,
    p_description;
  }

  public Map getMap(){
    Map map = new HashMap();
    map.put(Parameters.p_id.toString(),this.id);
    map.put(Parameters.p_group_name.toString(),this.group_Name);
    map.put(Parameters.p_description.toString(),this.description);

    return map;
  }

  public static final String INSERT_PROCEDURE = "groups_insert";
  public static final String UPDATE_PROCEDURE = "groups_update";
  public static final String DELETE_PROCEDURE = "groups_delete";
  public static final String GET_INFO_PROCEDURE = "groups_get_info";
  public static final String GET_ALL_PROCEDURE = "groups_get_all";
}
